// @ts-nocheck
/*
 * @Descripttion: 胡腾辉 | feico
 * @version: V1.0
 * @Author: feico
 * @Date: 2022-02-20 08:48:20
 * @LastEditors: feico
 * @LastEditTime: 2022-02-22 14:59:28
 */
import React from 'react'
import './App.scss'
import Login from './page/Login'
import Layout  from './page/Layout'
import NotFound from './page/NotFound'
import {Route,Switch,Redirect,Router} from 'react-router-dom'
import PrivateRoute from './components/PrivateRoute'
import history from './utils/history'
export default function App() {
        return (
        <div className='app'>
            <Router history={history}>
            <Switch>
                <Redirect exact  from='/' to='/home'></Redirect>
                <Route path='/login' component={Login}></Route>
                <PrivateRoute  path='/home' component={Layout}/>
                <Route component={NotFound}></Route>
            </Switch>
            </Router>
        </div>
            )
    }